package basic

import (
	"go.mongodb.org/mongo-driver/v2/mongo"
	"go.mongodb.org/mongo-driver/v2/mongo/options"
)

func Client(uri string) *mongo.Client {
	clientOptions := options.Client()
	client, err := mongo.Connect(clientOptions.ApplyURI(uri))
	if err != nil {
		panic(err)
	}
	return client
}
